home *** CD-ROM | disk | FTP | other *** search
- Path: dawn.mmm.com!news
- From: kjhopps@mmm.com (Kevin J Hopps)
- Newsgroups: comp.lang.c++
- Subject: Re: What has C++ got?
- Date: 3 Jan 1996 13:49:25 GMT
- Organization: 3M - St. Paul, MN 55144-1000 US
- Message-ID: <4ce1h5$7pu@dawn.mmm.com>
- References: <4bfdkd$qha@insosf1.netins.net> <tran0119.819779463@gold.tc.umn.edu> <4bsb4g$ai8@news1.sunbelt.net>
- Reply-To: kjhopps@mmm.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- dking@SunBelt.Net wrote:
- > In article <tran0119.819779463@gold.tc.umn.edu>,
- > tran0119@gold.tc.umn.edu (Cuong Q Tran) wrote:
- > >jdevries@netins.net (Joel DeVries) writes:
- > >
- > >>Can somebody tell me what C++ can do or what C++ has that ordinary C
- > >>doesn't have? Thanks
- > >
- > > It has two extra plus signs. Read the FAQs.
- > >
-
- > From what I've seen, nothing that makes it worth useing. Between the lack of
- > decent tutorials (at least for beginners), proprietary functions found only
- > with specific software (ie Microsoft's getline), and a host of other
- > headaches, I wouldn't bother with it.. I have just about decided to hell with
- > C++ and decided to my hand with basic. At least it makes sense...
-
- Too bad you didn't get more help starting out with C++. You might have
- really liked it.
-
- After using C++ for three years and having to go back to C for a project,
- I am acutely aware of some of the things C++ has that C hasn't got. The
- most basic things I missed were constructors, destructors and copying --
- having structs initialized, cleaned up and copied correctly without
- explicit function calls.
-
- I missed exceptions as well. Having to go back to "return-codes," I found
- that my code was much harder to read and write because it ended up with
- much more deeply nested if-tests. I struggled to get the resource cleanup
- at the proper level of indenting.
-
- You can also throw in the absence of a character string class and pre-built
- container classes. After using template vectors for so long, it was really
- a nuisance to have to do arrays "by hand" again.
-
- Even if one never took advantage of the object-oriented features of C++,
- the object-based features are easy to pick up for most C programmers and
- [IMHO] make programming much nicer.
- --
- Kevin J. Hopps e-mail: kjhopps@mmm.com
- 3M Company phone: (612) 737-4643
- 3M Center, Bldg. 235-2D-57 fax: (612) 737-2700
- St. Paul, MN 55144-1000 Opinions are my own. I don't speak for 3M.
- But 3M speaks for me -- I did not write the following line:
-
- Opinions expressed herein are my own and may not represent those of 3M.
-